home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / ytex / yusage.tex (.txt) < prev    next >
LaTeX Document  |  1991-12-01  |  68KB  |  1,497 lines

  1. % for yTeX
  2. \typesize=10pt
  3. \runninghead={How to Use \ytex}
  4. \makelgtbrackets
  5. % small caps font
  6. \font\sc=cmcsc10
  7. % easy indexing of macros described
  8. \let\+=\relax                                   % commands
  9. \let\==\relax                                   % parameters
  10. \let\:=\relax                                   % switches
  11. % easy verbatim stuff
  12. \catcode`\"=12\relax
  13. \def\"{\hbox{\tt "}}
  14. \def\verbq{\verb"}
  15. \addspecial\"
  16. \catcode`\"=\active \let"=\verbq
  17. % macro descriptions
  18. \newelement\gab
  19.   \setup \unvpar
  20.          \advance\parskip by2pt plus1pt
  21.          \leftskip=\parindent
  22.          \clubpenalty=10000
  23.          \def\*{\noindent \hskip-\leftskip\ignorespaces}%
  24.          \def\\{\linebreak\ignorespaces}%
  25.          \def\##1{{\tt \char`\{}#1{\tt \char`\}}}%
  26.   \above \minbreak \pregabpenalty \abovegabskip
  27.   \below \dobreak \postgabpenalty \belowgabskip \vpar
  28.   \begin
  29.   \end \endgraf
  30.   \endnew
  31. \abovegabskip=\abovebulletsskip
  32. \belowgabskip=\belowbulletsskip
  33. \pregabpenalty=\prebulletspenalty
  34. \postgabpenalty=\postbulletspenalty
  35. % names for TeXs
  36. \let\tex=\TeX
  37. \def\LaTeX{L\kern-.2em\raise.3ex\hbox{a}\kern-.09em\TeX}
  38. \let\latex=\LaTeX
  39. \def\Tbase{\sy{TBASE}}
  40. \let\tbase=\Tbase
  41. \def\Plain{{\rm Plain}}
  42. \let\plain=\Plain
  43. \def\lisp{L{\smllrm ISP}}
  44. \begintitlepage
  45. \tcenter{\sc The Artificial Intelligence Laboratory\\ Massachusetts
  46. Institute of Technology}
  47. \vskip 1pc
  48. \spread {Working Paper 273}{May 1985}
  49. \spread {}{Revised, June 1986}
  50. \vskip 6pc
  51. \ctitle {How to Use \ytex}
  52. \vskip 3pc
  53. \cauthor {Daniel Brotsky\\ June 9, 1986}
  54. \vskip 3pc
  55. \beginabstract
  56. \ytex---pronounced {\it why}-\tex\ or {\it oops}-\tex---is a
  57. \tex\ macro package.  \ytex\ provides both an easy-to-use
  58. interface for \tex\ novices and a powerful macro-creation library
  59. for \tex\ programmers.  It is this two-tier structure that makes
  60. \ytex\ more useful to a diverse \tex\ user community than other
  61. macro packages such as \plain\ or \latex.
  62. This paper contains \ytex\ instructions intended for novice
  63. users.  It summarizes the facilities provided in \ytex\ and
  64. concludes with a table of useful commands.
  65. The version of \ytex\ documented here is release \fmtversion.
  66. \endabstract
  67. \beginbottomtext
  68. Work on \ytex\ was supported by a desire to avoid doing real
  69. work, like research.
  70. \smallskip
  71. A.I. Laboratory Working Papers are produced for internal
  72. circulation, and may contain information that is, for example,
  73. too preliminary or too detailed for formal publication.  It is
  74. not intended that they should be considered papers to which
  75. reference can be made in the literature.
  76. \endbottomtext
  77. \endtitlepage
  78. \section {What is \ytex?}
  79. \ytex---usually pronounced {\it why}-\tex\ but see below---is a
  80. \tex\ macro package.  \ytex\ evolved from the author's experience
  81. with other \tex\ macro packages, primarily \tbase, \plain,
  82. \latex, and the \sy{PHW} book macros.  This experience showed
  83. that, on the one hand, packages as complete as \latex\ or \tbase\
  84. tend to be inflexible while, on the other hand, packages as
  85. flexible as \plain\ tend to be incomplete.  \ytex\ ties both
  86. hands together by aiming for inflexibility and incompleteness
  87. simultaneously.
  88. Like most \tex-related programs and macro packages, \ytex\ has a
  89. ``cute'' name that attempts a dual-language pun in English and
  90. pseudo-Greek.\footnote*{The result is about as weak the premise
  91. suggests.} The letter preceding the \tex\ in \ytex\ is not just a
  92. `Y' but also an {\it upsilon}---the Greek antecedent for the
  93. English letters `u' and `y'.\footnote\dag{Experienced \TeX\ math
  94. hackers may know that \TeX\ makes a version of capital upsilon
  95. available as $\Upsilon$, and they may wonder why the name \yTeX\
  96. is not spelled as \lower.5ex\hbox{$\Upsilon$}\kern-.1667em\TeX.
  97. That's because \TeX's version of $\Upsilon$ is not a Greek
  98. version (one of which really looked like `Y'---trust the Romans
  99. to be accurate in their borrowing) but actually the Uncial
  100. version popular among middle-ages religious circles.  Hey, what
  101. can I say?  Trust \TeX\ to be medieval whenever possible.} Thus
  102. you may pronounce \ytex\ as the expected {\it why}-\tex, the
  103. erudite {\it upsilon}-\tex, or the shorter {\it oops}-\tex.  But
  104. when you spell it to the computer, you have to spell it
  105. \sy{YTEX}.
  106. \section {About This Document}
  107. This document contains basic instructions for using \ytex.  It
  108. describes the things you can do using the user interface that
  109. \ytex\ always provides.  It does {\it not} explain how to use the
  110. \ytex\ library facilities to add to and replace parts of that
  111. interface.  Readers who are interested in such matters should
  112. look at the \ytex\ sources.
  113. If you are a complete \tex\ beginner you may find this document
  114. hard to follow.  In fact, almost everyone will find parts of the
  115. presentation hard to follow.  My advice to those who are confused
  116. is to not worry about it: most of the time you will be confused
  117. because you are reading about a feature you have no use for and
  118. thus no experience with.  If you need to use something and don't
  119. understand what is said about it here, just try the examples I
  120. give in one of your manuscripts and see if you can figure it out
  121. from there.  If that doesn't work, try finding someone who does
  122. use the feature and ask them.  As a last resort, try finding a
  123. \tex\ wizard and asking them.
  124. If you wish a quick summary of most of the \ytex\ commands, you
  125. should turn to the tables of commands, parameters, and switches
  126. at the very end of this document.
  127. \section {Some Notation and Conventions I Use Throughout}
  128. In what follows, I try to use notation and conventions very
  129. similar to those Knuth uses in the \tex book.  For
  130. convenience,\footnote*{(and also for those many of us who find
  131. the \tex book completely confusing)} I summarize most of
  132. the conventions here.
  133. \beginbullets
  134. \bpar Text set in "typewriter" type is suitable for \ytex\ input.
  135. \bpar Commands---also called {\it control sequences} or {\it
  136. macros}---all start with a backslash.  {\it Alphabetic commands}
  137. such as "\section" and "\it" have one or more letters after their
  138. backslash, while {\it non-alphabetic commands} such as "\'" and
  139. "\&" have a single non-letter after their backslash.  When you
  140. use an alphabetic command, you must have a space or other
  141. non-letter right after the command name (as in "{\it italics}"),
  142. and any spaces after the command are ignored by \tex.  When you
  143. use a non-alphabetic command, you can have anything at all after
  144. the command name (as in the Spanish "m\'agico"), and spaces you
  145. put there are {\it not} ignored by \tex.
  146. \bpar Commands sometimes need {\it arguments}, such as the stuff
  147. typed in braces in
  148. \beginverb
  149. \section {This is the Argument.}
  150. \endverb
  151. Most commands which use arguments---a process also called {\it
  152. taking} or {\it reading} arguments---expect their arguments to be
  153. enclosed in braces (as they were in this example).  But there are
  154. other ways of specifying arguments, and these are detailed in
  155. what follows.
  156. \bpar \ytex\ and \tex\ both have the notion of {\it parameters}
  157. which have {\it values}.  For example, the value of the "\hsize"
  158. parameter is used as the normal length of lines in paragraphs.
  159. To set a parameter, you give the name of the parameter, an
  160. optional `"="' sign, and then the desired new value for the
  161. parameter.  For example, to set the normal line length to 5
  162. inches, you could say either of the following things:
  163. \beginverb
  164. \hsize=5in
  165. \hsize 5in
  166. \endverb
  167. \bpar There are several kinds of parameters: <integer> parameters
  168. hold integers (such as 3 or $-1$), <dimen> parameters hold
  169. distances (such as "2in" or "5pt"), <glue> parameters hold
  170. variable distances (such as "6pt plus 2pt minus 1pt"), and <toks>
  171. parameters hold token lists (such as
  172. "{\bigsize\bf}").\footnote\dag{There are also <muglue>
  173. parameters, but only math wizards worry about those.} The
  174. different kinds of parameters are used for different purposes;
  175. for example, the "\hsize" parameter mentioned above is a <dimen>
  176. because line length is a distance, and the "\pageno" parameter
  177. that holds the current page number is---as expected---an
  178. <integer> parameter.  But no matter what their type, you assign
  179. values to parameters in the manner described above.
  180. \bpar If you ever want to examine the value of a parameter---for
  181. example, if you want to know what it is so you can change it
  182. appropriately---you can get \ytex\ to show you the value by
  183. putting "\showthe" in front of the parameter name.  For example,
  184. if you said "\showthe\parindent" in your input file, \ytex\ would print
  185. \beginverb
  186. >20.0pt.
  187. ...  \showthe\parindent
  188. \endverb
  189. on your terminal screen when it processes your input.  It would
  190. then pause and wait for you to type a carriage return before
  191. continuing.
  192. \endbullets
  193. \section {Format of a \ytex\ Input File}
  194. \ytex\ input is just normal \tex\ input.\footnote*{Of course,
  195. this means \tex82!  \tbase\ input, for example, will not work in
  196. \ytex.}  It is customary, however, to start \ytex\ input files
  197. with a comment indicating that \ytex\ is expected to process the
  198. file.  For example, the manuscript file for this document starts
  199. with the line
  200. \beginverb
  201. % for yTeX
  202. \endverb
  203. so anyone who looks at the file will realize this.
  204. The first command in every \ytex\ manuscript should be a
  205. \="\typesize"\= command specifying the desired type size for the
  206. text of the document.  For example, after the comment shown
  207. above, the manuscript for this document has the line
  208. \beginverb
  209. \typesize=11pt
  210. \endverb
  211. As you can see, a "\typesize" command looks like a command for
  212. setting one of \tex's <dimen> parameters, such as "\parindent".
  213. However, the dimension that follows the equal sign must be one
  214. of 10pt, 11pt, or 12pt, since these are the only sizes that
  215. \ytex\ supports for normal text.
  216. If you forget to put a "\typesize" command at the beginning of
  217. your manuscript, \ytex\ will complain with the error message
  218. \beginverb
  219. ! You never gave a \typesize command.
  220. \endverb
  221. Don't panic; just type a carriage return and \ytex\ will use
  222. 10~point type.  But you should add a "\typesize" command before
  223. you run the file again.
  224. You can't give more than one "\typesize" command in a single
  225. manuscript.  This is because \ytex\ implements your desired size
  226. by magnifying a 10pt document by the right amount, and \tex\ does
  227. not like to change magnification in the middle of a run.  This
  228. may seem like a drawback, but it's really a feature, because it
  229. means that the line and page breaks will not change if you run a
  230. manuscript through \ytex\ a second time using a different
  231. typesize!  So you can proof your document in one size and run it
  232. off in a different size without worrying about formatting
  233. changes.
  234. \section {How To Invoke \ytex}
  235. To invoke \ytex\ on \sy{OZ} you give the command \sy{YTEX} to the
  236. \sy{EXEC}.\footnote*{The commands \sy{YTEXHE} and \sy{YTEXTR}
  237. also exist for those who prefer the Helvetica or Times Roman font
  238. families.} \ytex\ starts up by printing a release number and
  239. reading in any recent fixes to itself.  It then looks for two
  240. files called \sy{YMATH.TEX} and \sy{YLOCAL.TEX} in your
  241. connected directory (and on \sy{TEXINPUTS:} if they are not
  242. found locally).  You can customize your \ytex\ by putting
  243. appropriate commands in these two files.
  244. The \sy{YMATH.TEX} files are intended for favorite mathematics
  245. macros while the \sy{YLOCAL.TEX} macros are for macros or
  246. parameter settings of any kind.  Of course, all kinds of \tex\
  247. commands can be put in either of these files, but keep the
  248. following in mind: separating math macros from others can make
  249. the job of merging different authors' manuscripts a lot easier.
  250. \section {Where are the Sources}
  251. The source for \ytex\ lives in the directory \sy{KS:<TEX.YTEX>}
  252. on \sy{OZ} and is split primarily among the files \sy{YTEX.MAC},
  253. \sy{YBASE.MAC}, \sy{YFONTS.MAC}, and \sy{YUSER.MAC}.  The file
  254. \sy{YLOG.MAC} contains a log of essentially all the changes made
  255. to \ytex\ since its early stages; the first few lines of this
  256. file declare the current version number.  The file \sy{YSITE.MAC}
  257. contains definitions and parameter settings (``site changes'')
  258. appropriate to the local installation.  The file \sy{YUSAGE.TEX}
  259. contains the source for this document.
  260. The file \sy{KS:<TEX.YTEX>YFIX.MAC} is where \ytex\ looks for
  261. revisions made to the macros since the last version was dumped.
  262. Finally, an archive of correspondence about \ytex\ can be found
  263. in the file \sy{KS:<TEX.YTEX>YTEX.MAIL} on \sy{OZ}.
  264. \section {The \ytex\ View of Documents}
  265. \ytex\ believes that documents are made up of chunks of text
  266. called {\it elements} which are laid out on pages.  For example,
  267. each paragraph is an element, as is each chapter or section
  268. heading, each figure, each footnote, and so on.  Many of the
  269. \ytex\ commands you will use most often serve to tell \ytex\
  270. which text belongs to which element.  For example, the command
  271. "\footnote" tells \ytex\ that its argument is a footnote
  272. element.
  273. As \ytex\ encounters elements of various types in its input, it
  274. first tries to format the content of each element in the desired
  275. way.  For example, when it finishes reading the contents of a
  276. paragraph, it first tries to break the contents into lines
  277. according to the rules currently in effect for paragraph
  278. elements.  When \ytex\ finishes reading the text of a table, it
  279. tries to format that text according to the current rules for
  280. table elements.
  281. Once \ytex\ accumulates enough elements to fit on a page, it
  282. tries to lay those elements out on a page according to the layout
  283. rules that apply to each element.  For example, header elements
  284. appear as a single line alone at the very top of a page, while
  285. footnote elements appear tacked onto the bottoms of pages.
  286. Page layout is the hardest part of \ytex's job.  This is because
  287. the rules for laying out various elements may come into conflict.
  288. For example, the rules for figures elements that appear in text
  289. may say that the figure should be separated from the surrounding
  290. text by one pica.\footnote*{There are six picas to the inch.}
  291. But a figure may be placed just before a section heading, and the
  292. rules for section heading elements may say that they should be
  293. preceded by two picas.  In cases like this, \ytex\ does the best
  294. it can, but it may not do exactly what you want.  So if you are
  295. very picky about the page layout of a particular document, you
  296. may have to tell \ytex\ exactly what you want at each place a
  297. conflict like this arises.  But don't worry: usually only people
  298. who are publishing books need to be this picky.
  299. \section {The Five Kinds of \ytex\ Commands}
  300. There are five kinds of \ytex\ commands:
  301. \beginbullets
  302. \bpar {\it Delimiters\/} are commands that demarcate the text of
  303. particular elements: they do what is commonly known as
  304. ``typemarking.''  For example, "\section" and "\footnote" are
  305. both delimiters.  All delimiters read arguments (in ways
  306. explained below); it is the contents of these arguments that
  307. become the contents of the elements they delimit.
  308. \bpar {\it Parameters\/} are commands that affect the formatting
  309. and layout rules for particular elements.  For example, "\hsize"
  310. and "\parskip" are parameters that affect the width and layout of
  311. paragraphs and pages.  Parameters don't take arguments; instead,
  312. they have values which can be assigned in the manner described
  313. above.
  314. \bpar {\it Switches\/} are commands like parameters that affect
  315. the formatting and layout of particular elements.  For example,
  316. "\noindent" and "\offheaders" are switches.  Switches come in two
  317. kinds---on/off switches and true/false switches---which are
  318. described in detail later.  Switches never take arguments.
  319. \bpar {\it Abbreviations\/} are commands that expand into common
  320. sequences of low-level \tex\ commands.  For example, "\padline"
  321. and "\linebreak" are abbreviations.  Some abbreviations have
  322. arguments, and some don't.  Any abbreviations that take arguments
  323. take them in braces in the normal \tex\ way.
  324. \bpar {\it Descriptors\/} are commands that create new element
  325. types with particular formatting and layout rules.  For example,
  326. the commands "\newfloat" and "\newtitle" are descriptors that
  327. are used to create elements which float to the top of pages or
  328. which title things.  Descriptors take very complex arguments.
  329. \endbullets
  330. Normally, you use only delimiters, parameters, switches, and
  331. abbreviations in your manuscripts.  Descriptors are for
  332. compulsive \tex\ hackers who feel the need for new element types,
  333. or for wizards who are preparing documents with special
  334. requirements (such as this manual).
  335. \section {More About Delimiter Commands}
  336. Delimiters come in three kinds:
  337. \beginbullets
  338. \bpar {\it Standard\/} delimiters---such as "\section", "\footnote",
  339. or "\spread"---take their arguments in the standard \tex\ way:
  340. the arguments are enclosed in braces and appear immediately after
  341. the command.  For example, this is how you give two arguments
  342. to the "\spread" command:
  343. \beginverb
  344. \spread {First argument}{Second argument}
  345. \endverb
  346. \bpar {\it Paired\/} delimiters---such as
  347. "\begintext"/\allowbreak"\endtext" and
  348. "\beginabstract"/\allowbreak"\endabstract"---surround their
  349. argument.  For example, this is how you delimit the text of an
  350. abstract:
  351. \beginverb
  352. \beginabstract
  353. This is a very short abstract
  354. used only for expository purposes.
  355. I wish all my abstracts were this simple.
  356. \endabstract
  357. \endverb
  358. \bpar {\it Paragraph\/} delimiters---such as "\bpar" and
  359. "\ftpar"---are kind of a cross between standard and paired
  360. delimiters.  Their most important argument---the text of the
  361. paragraph---is delimited by the paragraph delimiter in front and
  362. the command "\par" (or a blank line) in back.  But they may have
  363. additional arguments (such as tag text) which are given in braces
  364. immediately following the paragraph delimiter.  For example, this
  365. paragraph starts with
  366. \beginverb
  367. \bpar {\it Paragraph\/} delimiters---
  368. \endverb
  369. and ends with a blank line.  But it would look exactly the same
  370. if it had started with
  371. \beginverb
  372. \ftpar{$\bullet$}  {\it Paragraph\/} delimiters---
  373. \endverb
  374. instead.
  375. \endbullets
  376. Most paired delimiters are also available in a standard form.
  377. For example, you can use the command "\abstract" instead of
  378. "\beginabstract" and "\endabstract", in which case you would
  379. enclose the text of the abstract in braces and place it right
  380. after the command.\footnote*{The only paired delimiters that are
  381. not available in standard form are those in which the delimited
  382. text is in ``nofill'' mode, such as "\beginverbatim" and
  383. "\endverbatim".  This has to do with subtle differences between
  384. the effect of the two forms, differences that you needn't care
  385. about and which can confuse even \tex\ wizards.}  As you may have
  386. guessed from the example, you get the standard form of paired
  387. delimiters by removing the "begin" and "end" prefixes.
  388. Each argument to a standard or paired delimiter is a local group;
  389. that is, font and other parameter changes inside the element do
  390. not have any effects outside.  So if you want the text of your
  391. abstract to be in italics, you can just say
  392. \beginverb
  393. \beginabstract
  394. \it This abstract is in italics.
  395. \endabstract
  396. \endverb
  397. instead of the (also correct but) tedious
  398. \beginverb
  399. \beginabstract
  400. {\it This abstract is in italics.}
  401. \endabstract
  402. \endverb
  403. Similarly, you can just say
  404. \beginverb
  405. \section {\it An Italic Section Header}
  406. \endverb
  407. instead of
  408. \beginverb
  409. \section {{\it An Italic Section Header}}
  410. \endverb
  411. \section {More About Switches}
  412. Switches come in two kinds:
  413. \bpar {\it On/off} switches are usually used to control whether
  414. things such as headers and footers appear on a page.
  415. For example, whether headers appear or not is controlled by the
  416. two commands "\onheaders" and "\offheaders".  These two commands
  417. together are said to control the "\headers" switch.
  418. \vpar All on/off switches have variations in a {\it yes/no} form.
  419. For example, the commands "\yesheaders" and "\noheaders" are like
  420. "\onheaders" and "\offheaders", except that they {\it only}
  421. control headers on the current page, not on future pages as well.
  422. The point of having both on/off and yes/no versions of switches
  423. can be seen from the following: If you want none of the pages of
  424. a letter numbered, you would put "\offfooters" at the beginning of
  425. the letter.  But if you want numbers on the bottoms of all pages
  426. except the first, you would put "\nofooters" at the beginning.
  427. The effect of "\nofooters" is to turn off the "\footers" switch
  428. for the first page {\it only}.
  429. \bpar {\it True/false} switches are mostly used by wizards, so I
  430. won't say much about them here.  They are much like off/on
  431. switches except that they have a different form.  For example,
  432. the "\vpar" switch controls whether the first paragraph after a
  433. section heading is left-flush or not; the "\vpar" switch is
  434. turned on with "\vpartrue" and turned off with "\vparfalse".  You
  435. can see the effects of saying "\vpartrue" in this document.
  436. \section {A List of the \ytex\ User Macros}
  437. This section contains descriptions of the most useful \ytex\
  438. macros.  The listing is broken down by subject area; for example,
  439. all the commands relevant to footnotes can be found in one place,
  440. and all the commands relevant to sectioning in another.  The next
  441. section gives an alphabetized list of all the commands.
  442. In the following descriptions, only the "begin" half of paired
  443. delimiters is mentioned.  All the paired delimiters are available
  444. in standard forms unless the description mentions otherwise.
  445. Also, only the "on" form of on/off switches is mentioned.  Of
  446. course, the "off", "yes", and "no" forms are also available.
  447. \heading {Titling Pages}
  448. \ytex\ provides two kinds of titling pages: {\it part pages}
  449. which are delimited by \+"\beginpartpage"\+ and {\it title pages}
  450. which are delimited by \+"\begintitlepage"\+.  The only
  451. difference between the two is that title pages are always
  452. numbered 0 while part pages have whatever number they would
  453. normally be assigned.  The contents of titling pages are centered
  454. by default, and titling pages have no runners unless you ask for
  455. them.
  456. The following commands are useful both on titling pages and
  457. elsewhere:
  458. \begingab
  459. \*\+"\begintitle"\+ and \+"\beginctitle"\+\\set their arg as
  460. titles.  "\begintitle" gives a left-flush ragged-right paragraph
  461. and "\beginctitle" gives a ragged-center paragraph.  Inside of
  462. titles, the commands \+"\\"\+, \+"\cr"\+, and \+"\crcr"\+ force
  463. line breaks.
  464. \*\+"\beginauthor"\+ and \+"\begincauthor"\+\\are like
  465. "\begintitle" and "\beginctitle" but use \="\authorfont"\=
  466. (default "\regsize\rm") instead of \="\titlefont"\= (default
  467. "\bigsize\bf").
  468. \*\+"\beginabstract"\+\\delimits abstract text which is set in
  469. \="\abstractfont"\= (default "\smlsize\rm") and indented from
  470. both margins by "\abstractindent" (default "0pt").
  471. \endgab
  472. The following command is available only on titling pages:
  473. \begingab
  474. \*\+"\beginbottomtext"\+\\delimits text which is set at the
  475. bottom of the page in \="\bottomtextfont"\= (default
  476. "\smllsize\rm").  If you use this command, the text of the page
  477. will no longer be centered.  Instead, the delimited material
  478. appears at the bottom of the page and material above it will
  479. start at the top of the page.
  480. \endgab
  481. \heading {Chapters and Sections}
  482. These macros produce titles at the top of chapters, sections, and
  483. so on.  Titles are normally set as left-flush, ragged-right
  484. paragraphs.  Inside of titles, the commands \+"\\"\+, \+"\cr"\+,
  485. and \+"\crcr"\+ force line breaks.
  486. \begingab
  487. \*\+"\beginchapter"\+ <title> "\endchapter"\\starts a new
  488. chapter.  The <title> is set in the \="\chapterfont"\= (default
  489. "\bigsize\bf") as a left-flush ragged-right paragraph.  The title
  490. is preceded by \="\prechapterpenalty"\= and
  491. \="\abovechapterskip"\= and followed by \="\postchapterpenalty"\=
  492. and \="\belowchapterskip"\=.  Most people prefer the standard
  493. form "\chapter"~\#{<title>}.
  494. \*\+"\beginpchapter"\+\\is like "\beginchapter" but it forces the
  495. title to the top of a new page and turns off runners for that
  496. page.  In two-sided matter, it forces the title to the top of a
  497. recto page.
  498. \*\+"\beginsection"\+\\is like "\beginchapter" but uses smaller
  499. font and spacing.  Neither chapters nor sections do any automatic
  500. numbering for you.  But there are no-op commands \+"\secdef"\+
  501. and \+"\secref"\+ which, like their figure and table cousins, can
  502. be used to help keep track of numbering.  There are commands
  503. \+"\beginsubsection"\+ and \+"\beginsubsubsection"\+ but they are
  504. just aliases for "\section".
  505. \*\+"\beginheading"\+\\is like "\beginsection" but with smaller
  506. font and spacing.
  507. \endgab
  508. The true/false switch \:"\centerheadingstrue"\: controls whether
  509. chapter, section, and other titles are set as left-flush or
  510. centered ragged-margin paragraphs.  The default is
  511. "\centerheadingsfalse"; that is, headings are left-flush as
  512. mentioned above.
  513. \heading {Page Layout}
  514. Pages have headers and footers, jointly called runners.  When
  515. they are turned on, runners are single lines that appear
  516. separated from the main text by the distances \="\headerdrop"\=
  517. and \="\footerdrop"\=.\footnote*{These dimensions are not
  518. measured baseline-to-baseline; rather, they are the appearing
  519. space between the runners and the text.} By default, headers are
  520. turned on and footers are turned off.
  521. \begingab
  522. \*\:"\onrunners"\:, \:"\onheaders"\:, and \:"\onfooters"\:\\are
  523. switches that turn the various runners on.  Recall that the
  524. effects of these commands are permanent; the effects of their
  525. yes/no counterparts are confined to the current page.
  526. \endgab
  527. There are actually two versions of headers and footers---one for
  528. recto (right-hand or odd-numbered) pages and one for verso
  529. (left-hand or even-numbered) pages.  By default, all pages are
  530. considered to be recto pages, but you can use the switch
  531. \:"\twosidedtrue"\: to get two-sided output and "\twosidedfalse"
  532. to go back to one-sided.
  533. The contents of headers and footers are the values of the <toks>
  534. parameters \="\versoleftheader"\=, \="\rectoleftheader"\=, and so
  535. on.  By default, the \="\rectorightheader"\=, the
  536. "\versoleftheader", and both center footers contain a boldface
  537. page number (called a {\it folio}); these come out in roman
  538. numerals if they are negative.  (The page number is the parameter
  539. \="\pageno"\= which you can set.)  Also by default, the
  540. "\rectoleftheader" is the "\firstmark".
  541. For example, if you want your pages numbered at the bottom, you
  542. could say
  543. \beginverb
  544. \offheaders     % turn off the header lines
  545. \onfooters      % turn on the footer lines
  546. \endverb
  547. because the footers contain page numbers by default.  If you want
  548. each page to have a title and a page number, you can say
  549. \beginverb
  550. \rectoleftheader={The Title of My Paper}
  551. \endverb
  552. Since this is done so often, there is a synonym
  553. \="\runninghead"\= for "\rectoleftheader" that lets you say
  554. \beginverb
  555. \runninghead={The Title of My Paper}
  556. \endverb
  557. instead.
  558. The default font for runners is kept in the <toks> parameter
  559. \="\runnerfont"\=, which starts out as "\smlsize\rm".
  560. \heading {Paragraphs}
  561. Each paragraph is an element to \ytex.  Paragraphs are considered
  562. to consist of a crown (the first line) and a vest (all the other
  563. lines).  By default, the crown is indented "\parindent" and the
  564. vest is not.  But there are a variety of paragraph delimiters
  565. that give you paragraph elements that are formatted differently.
  566. (Recall that paragraph delimiters start paragraphs that are
  567. ended by "\par" or a blank line.)
  568. \begingab
  569. \*\+"\ivpar"\+\\delimits an {\it inverted} paragraph: the crown
  570. is not indented but the vest is.
  571. \*\+"\ipar"\+\\delimits an {\it indented} paragraph: both crown
  572. and vest are indented.
  573. \*\+"\ftpar"\+ \#{<tag text>}\\delimits a {\it flush-tagged}
  574. paragraph: both crown and vest are indented and the first
  575. argument (in braces) to "\ftpar" is set flush on the left margin
  576. of the crown.  For example,
  577. \beginverb
  578. \ftpar {1.} First line ...\linebreak second line ...\par
  579. \endverb
  580. produces a paragraph that looks like this:
  581. \begintextlines
  582. \parindent=2em%
  583. \ftpar{1.}First line \dots\linebreak{}second line \dots
  584. \endtextlines
  585. \*\+"\atpar"\+ \#{<tag text>}\\delimits an {\it adjoint-tagged}
  586. paragraph: both crown and vest are indented and the first
  587. argument (in braces) to "\atpar" is set so its right edge is
  588. \="\partagsep"\= away from the left edge of the crown line.
  589. (This is like the \plain\ \tex\ "\item" command.)  For example,
  590. \beginverb
  591. \atpar {a)} First line ...\linebreak second line ...\par
  592. \endverb
  593. produces a paragraph that looks like this:
  594. \begintextlines
  595. \parindent=2em%
  596. \atpar{a)}First line \dots\linebreak{}second line \dots
  597. \endtextlines
  598. \*\+"\vtpar"\+ \#{<tag text>}\\delimits a {\it variably-tagged}
  599. paragraph: the crown, vest, and tag are set just like an
  600. adjoint-tagged paragraph but the width of the indent is not the
  601. "\parindent" but instead is the width of the tag text.  For
  602. example,
  603. \beginverb
  604. \vtpar {Keywords:} This ...\linebreak and that ...\par
  605. \endverb
  606. produces a paragraph that looks like this:
  607. \begintextlines
  608. \vtpar{Keywords:}This \dots\linebreak{}and that \dots
  609. \endtextlines
  610. \*\+"\bpar"\+\\delimits a {\it bullet} paragraph: a flush-tagged
  611. paragraph whose tag is a bullet symbol.
  612. \endgab
  613. If bullet paragraphs appear next to each other, it is good
  614. practice to put a \+"\beginbullets"\+ before the first one and an
  615. \+"\endbullets"\+ after the last one.  This will add a little
  616. space before and after so as to visually cluster the paragraphs.
  617. If you interpose math or a figure or a title between paragraphs,
  618. it is standard typesetting practice not to indent the paragraph
  619. immediately following the interposed element.  For example,
  620. the paragraphs which immediately follow section titles
  621. in this document are not indented, nor are those which follow
  622. figures or textual displays.
  623. To follow this practice in your own documents, you could
  624. use "\noindent" to start the paragraphs which follow interposed
  625. elements.  But \ytex\ does this for you automatically.  The
  626. command \+"\vpar"\+ effectively forces the next paragraph to
  627. start with "\noindent", and all \ytex\ commands which interpose
  628. material between paragraphs---such as "\section"---end with
  629. "\vpar".  Thus you will not have to use "\noindent" after
  630. figures and so on.
  631. If for some reason you want a particular paragraph that follows
  632. interposed text to be indented normally, just give the command
  633. \+"\unvpar"\+ in front of that paragraph.  "\unvpar" cancels the
  634. effect of "\vpar" and allows the paragraph to be indented.
  635. \begingab
  636. \*\:"\vpartrue"\: and "\vparfalse"\\allow and disallow the
  637. effects of "\vpar".  If you don't want the first paragraphs of
  638. sections and so on to be left-flush, say "\vparfalse".
  639. \*\+"\linebreak"\+\\ends the current line of a paragraph, filling
  640. out to the right hand margin with blank space.
  641. \*\:"\onindent"\:\\turns the default indentation of crown lines
  642. on.  If you want your paragraphs to normally have no indentation,
  643. say "\offindent".  But keep in mind that this will break commands
  644. like "\bpar" which rely on indentation.
  645. \*\+"\beginquote"\+\\delimits a quote.  Quotes are set in the
  646. \="\quotefont"\= (default "\smlsize\rm") with the left and right
  647. margins narrowed by "\parindent".  Inside of quotes paragraph
  648. indentation is turned off (with "\offindent").
  649. \endgab
  650. \heading {Fonts and Sizes}
  651. To change type face in a document, you use the normal \tex\
  652. commands "\it", "\bf", "\tt", "\sl", and "\rm".  To change to
  653. increasingly bigger sizes of type, you can use the commands
  654. \+"\bigsize"\+, \+"\biggsize"\+, and \+"\bigggsize"\+.  For
  655. increasingly smaller sizes, you can use \+"\smlsize"\+,
  656. \+"\smllsize"\+, and \+"\smlllsize"\+.  You can switch to the
  657. regular size with \+"\regsize"\+.  The size-changing commands all
  658. switch to the roman face.
  659. There are commands \+"\smlrm"\+, \+"\smllrm"\+, and \+"\smltt"\+
  660. which are like face-changing commands in that the baseline
  661. spacing does not change, but the ``typeface'' they switch to are
  662. actually smaller sizes of the indicated face.  For example, to
  663. get the effect of what printers call ``small caps'', you can use
  664. the "\smllrm" face.  To get \lisp, you would say
  665. "L{\smllrm"~"ISP}".
  666. If you ever want to set material in the font selected by a font
  667. parameter such as "\titlefont", you can select that font by
  668. saying "\the" in front of the parameter name.  For example, to
  669. set three words in the "\captionfont", I could say
  670. \beginverb
  671. Here are {\the\captionfont three small words}.
  672. \endverb
  673. which gives me
  674. \begintext
  675. Here are {\the\captionfont{}three small words}.
  676. \endtext
  677. \vpar
  678. The command \+"\singlespace"\+ causes lines to be single spaced,
  679. and the command \+"\doublespace"\+ causes lines to be double
  680. spaced.  Single spaced lines are the default.  These commands
  681. affect all text, including footnotes and captions, so that if you
  682. use "\doublespace" you might want to add a "\singlespace" command
  683. to the font parameters for footnotes, captions, and so on.  If
  684. you don't like the exact spacing values used by "\singlespace" or
  685. "\doublespace", read what it says below about line spacing for
  686. wizards and define your own versions of these commands.
  687. \heading {Figures}
  688. You can ask \yTeX\ to lay out your figures in one of four ways:
  689. {\it stationary}, which means that figures are boxes that appear
  690. where they are defined; {\it section}, which are like stationary
  691. except that they are followed by "\vfil" glue which makes them
  692. suitable for putting all in one section with no intervening text;
  693. {\it top}, which means all figures float to the top of a page; or
  694. {\it floating}, which means they appear where they are defined
  695. unless they can't fit on the page there in which case they float
  696. to the top of the next page they fit on.  The current layout
  697. discipline (default {\it floating}) can be set with
  698. \+"\stationaryfigures"\+, \+"\sectionfigures"\+,
  699. \+"\topfigures"\+, and \+"\floatingfigures"\+.
  700. \begingab
  701. \*\+"\figdef"\+ and \+"\figref"\+\\are no-ops which are useful
  702. for keeping track of figure numbers.
  703. \*\+"\beginfigure"\+\\delimits a figure definition.  You get a
  704. figure layed out according to the current discipline.  Each
  705. figure is enclosed in a "\vbox" so you don't have to worry about
  706. breaks.
  707. \begingroup \figurelinetrue
  708. \beginfigure
  709. \noindent This figure was defined with
  710. \beginverb
  711. \beginfigure
  712. \noindent This figure was defined with ...
  713.    ...
  714. \begincaption
  715. Figure~\figdef{1}.  A figure which is ...
  716. ... it will float.
  717. \endcaption
  718. \endfigure
  719. \endverb
  720. and this was the result.
  721. \begincaption
  722. Figure~\figdef{1}.  A figure which is also an example of how to
  723. prepare a figure.  This figure will appear where it was defined
  724. unless it can't fit on that page, in which case it will
  725. float.
  726. \endcaption
  727. \endfigure
  728. \endgroup
  729. \*\+"\beginpagefigure"\+\\delimits a full-page figure definition.
  730. These figures go on pages by themselves.
  731. \beginpagefigure
  732. \vfil
  733. \noindent This full-page figure was defined with
  734. \beginverb
  735. \beginpagefigure
  736. \vfil
  737. \noindent This full-page figure was defined with ...
  738.   ...
  739. \begincaption
  740. Figure~\figdef{2}.  A figure which is ...
  741. ... it will float.
  742. \vfil
  743. \endcaption
  744. \endpagefigure
  745. \endverb
  746. and this was the result.
  747. \vfil
  748. \begincaption
  749. Figure~\figdef{2}.  A figure which is also an example of how to
  750. prepare a figure.  This figure will appear where it was defined
  751. unless it can't fit on that page, in which case it will float.
  752. \endcaption
  753. \endpagefigure
  754. \*\+"\beginstationaryfigure"\+\\gives a stationary figure no
  755. matter what the current layout discipline is.  The paired
  756. delimiter "\beginstationarypagefigure" gives a full-page
  757. stationary figure, and there are similar explicit commands
  758. provided for all four of the layout disciplines.
  759. \*\+"\begincaption"\+\\is defined only within figures and
  760. delimits captions, which are set as unindented paragraphs in
  761. \="\captionfont"\= with margins narrowed by \="\captionindent"\=.
  762. Captions are preceded by \="\abovecaptionskip"\=.
  763. \endgab
  764. For examples, see figures~\figref{1} and~\figref{2}, which I
  765. referred to here by saying
  766. \beginverb
  767. ... see figures~\figref{1} and~\figref{2}, ...
  768. \endverb
  769. Note, in particular, that figure~\figref{1} is bracketed by
  770. horizontal lines.  \ytex\ will put out such lines if you say
  771. \:"\figurelinetrue"\: at the front of your document; the default
  772. is \:"\figurelinefalse"\: (no lines).  (The lines themselves are
  773. put \="\figurelinedrop"\= away from the body of the figure.)
  774. The easiest way to leave space for a paste-in figure is to define
  775. a figure whose body consists of a vertical skip command, as in
  776. \beginverb
  777. \beginfigure
  778. \vskip 2 true in
  779. \begincaption
  780. This will be a 2 inch high pasted in figure.
  781. \endcaption
  782. \endfigure
  783. \endverb
  784. Note that the amount to skip was given in {\tt true} inches, not
  785. just inches.  This is because typesizes larger than ten point are
  786. implemented by magnifying the entire document: if the dimension
  787. had been given as "2in" and the typesize were given as "11pt",
  788. \yTeX\ would leave 2.2 inches of space instead of 2.  The use of
  789. "true" in the dimension specification prevents \yTeX\ from
  790. magnifying the space it leaves for the paste-in
  791. material.\footnote*{Keep in mind that specifying sizes in true
  792. dimensions may cause the page breaks to change when the type
  793. size changes.  If you are proofing in a larger typesize and you
  794. want page breaks to remain consistent, you should specify
  795. paste-in sizes {\it without} the "true" specification, basing the
  796. declared size on the magnification which will be used in {\it
  797. final} output.  Then don't worry about the fact that the spaces
  798. in the proof version are a little large.}
  799. There is a <toks> parameter \="\topsep"\= whose contents are
  800. inserted between the floating figures and text on any page where
  801. floating figures appear.  By default, "\topsep" is empty, so only
  802. the normal below-figure space appears between floating figures
  803. and text.  If you want more space, you can say, for example,
  804. \beginverb
  805. \topsep={\bigskip}
  806. \endverb
  807. \heading {Tables}
  808. Tables are delimited with \+"\begintable"\+ and "\endtable".
  809. Right after the "\begintable" command you must have a {\it
  810. preamble specification} enclosed in brackets ("[" and "]"), such
  811. as in
  812. \beginverb
  813. \begintable [l"r|lc]
  814. \topline
  815. Item&&        Price&&  User&          Use\cr
  816. \dmidline
  817. Widgets&&    \$2.50&&  D. Brotsky&    \TeX\ work\cr
  818. \midline
  819. Grommets&&\$2500.50&&  The Pentagon&  none\cr
  820. \botline
  821. \endtable
  822. \endverb
  823. which produces table~\tabref{1}.
  824. \beginfigure
  825. {\catcode`\"=12\relax
  826.  \centerline {%
  827.    \begintable [l"r|lc]
  828.      \topline
  829.      Item&&     Price&&     User&          Use\cr
  830.      \dmidline
  831.      Widgets&&    \$2.50&&  D. Brotsky&    \TeX\ work\cr
  832.      \midline
  833.      Grommets&&\$2500.50&&  The Pentagon&  none\cr
  834.      \botline
  835.    \endtable}}
  836. \begincaption
  837. Table~\tabdef{1}.  This table is produced by the example in the
  838. text.  Well, actually, this table is {\it almost} produced by
  839. that example; in fact, this one has also been centered on the
  840. page by putting the entire text of that example into the argument
  841. of "\centerline".
  842. \endcaption
  843. \endfigure
  844. Inside of a preamble specification, each character stands for one
  845. column in the table.  The meanings of the characters are:
  846. \begindisplaytable [cl]
  847. "l"&   left-aligned column\cr
  848. "L"&   left-aligned math column\cr
  849. "c"&   center-aligned column\cr
  850. "C"&   center-aligned math column\cr
  851. "r"&   right-aligned column\cr
  852. "R"&   right-aligned math column\cr
  853. "|"&   single-thickness vertical line\cr
  854.  \"&   double-thickness vertical line\cr
  855. "&"&   repeat specification marker\cr
  856. \enddisplaytable
  857. Math columns are just like their non-math counterparts except
  858. that the entries are set in math mode in \="\tablestyle"\=
  859. (default "\displaystyle").  The "&" specification allows you to
  860. take advantage of \tex's automatic iteration of column
  861. specifications: if you have more entries in a line than you have
  862. columns in the preamble, the preamble columns will repeat from
  863. wherever the "&" was specified.
  864. The thickness of a "|" line is the <dimen> parameter
  865. \="\vbarwidth"\= (default ".4pt") and the thickness of a \" line
  866. is the <dimen> parameter \="\dvbarwidth"\= (default "1pt").  Keep
  867. in mind that "|" and \" columns must be delimited by "&" like
  868. other columns.  It's just that normally the contents of these
  869. columns are empty, so you end up with "&&" in the rows of your
  870. input.
  871. Inside tables the command "\\" ends rows like "\cr".  In
  872. addition, you get access to a variety of useful commands:
  873. \begingab
  874. \*\+"\inline"\+\\puts a horizontal line in the table.  Better to
  875. use are \+"\topline"\+, \+"\midline"\+, and \+"\botline"\+ (which
  876. you normally use at the top, middle, and bottom of the table)
  877. because they put padding around the line which looks good.
  878. \*\+"\dinline"\+, \+"\dtopline"\+, \+"\dmidline"\+, and
  879. \+"\dbotline"\+\\are the double-width counterparts of the
  880. commands mentioned above.  "\inline"-type lines have thickness
  881. \="\hbarheight"\=, and "\dinline"-type lines have thickness
  882. \="\dhbarheight"\=.
  883. \*\+"\padline"\+ <dimen>\\puts <dimen> extra space between lines
  884. of the table with the nice feature that vertical bars specified
  885. in the preamble extend right through the extra space.  The
  886. <dimen> is not an argument: don't put it in braces.
  887. \endgab
  888. In addition, you get \+"\tabdef"\+ and \+"\tabref"\+ which, like
  889. "\figdef" and "\figref", are no-ops useful for keeping track of
  890. table numbers.  Also, there are the following table-affecting
  891. parameters:
  892. \begingab
  893. \*\="\pretabskip"\=, \="\intabskip"\=, and
  894. \="\posttabskip"\=\\are the glue parameters that "\tabskip" glue
  895. is set to before the first column, between columns, and after the
  896. last column of a table.  Defaults are "\hfil" glue for
  897. "\pretabskip" and "\posttabskip", "1em" glue for "\intabskip".
  898. \*\="\tablewidth"\=\\is settable like a <dimen>, and setting it
  899. has strong side effects.  If you set it positive, all lines in
  900. tables are set to that width.  If you set it to zero, tables have
  901. their natural width.  If you set it negative, tables are expanded
  902. by the negative of what you set it to.  The default is "0pt";
  903. that is, tables have their natural size.
  904. \endgab
  905. Finally, in addition to the "\begintable" command which puts a
  906. box around its table, there is \+"\beginopentable"\+ which does
  907. not put a box and there is \+"\begindisplaytable"\+ which centers
  908. the whole table in a "$$"-style display.
  909. \heading {Footnotes}
  910. \ytex\ gives you a footnote mechanism essentially equivalent to
  911. \plain's, but footnotes are output as adjoint-tagged paragraphs
  912. in the \="\footnotefont"\= with an indent of
  913. \="\footnotemarkerwidth"\=.
  914. \begingab
  915. \*\+"\footnote"\+\#{<tag>}\#{<footnote text>}\\puts <tag> where
  916. you call "\footnote" and also gives you a footnote marked with
  917. <tag>.  You use "\footnote" inside paragraphs.
  918. \*\+"\nfootnote"\+\#{<tag>}\#{<footnote text>}\\is like
  919. "\footenote" but the <tag> must be a number.  The tag is set as a
  920. superscript.
  921. \*\+"\vfootnote"\+\#{<tag>}\#{<footnote text>}\\is like
  922. "\footnote" but it doesn't put the tag where you call it, only on
  923. the footnote text itself.  You use "\vfootnote" between
  924. paragraphs.
  925. \*\+"\beginfootmatter"\+\\gives you a footnote with no marker and
  926. with no left margin indentation where the marker would go.  I'm
  927. not sure why you would want this.
  928. \endgab
  929. The no-ops \+"\footdef"\+ and \+"\footref"\+ are provided to help
  930. keep track of footnote numbering.  There is a <toks> parameter
  931. \="\botsep"\= whose contents are inserted between the text and
  932. footnotes on any page where footnotes appear.  By default,
  933. "\botsep" puts in some space and a short line.  If you just want
  934. space, you can say, for example,
  935. \beginverb
  936. \botsep={\bigskip}
  937. \endverb
  938. \heading {Textual Displays}
  939. These macros give you "$$"-like displays containing text and
  940. other useful textual blocks.  There are no standard forms for any
  941. of the "begin" and "end" paired delimiters that produce textual
  942. displays.
  943. \begingab
  944. \*\+"\beginnofill"\+\\delimits text that is not made into filled
  945. lines, but output in lines as it appears in the input.
  946. Indentation is turned off.
  947. \*\+"\begintext"\+\\gives you a "$$"-like display containing the
  948. nofill material it delimits.  The displayed lines have width
  949. "\displaywidth" and are indented "\parindent" from the normal
  950. "\displayindent" of the display.
  951. \*\+"\begintextlines"\+\\is like "\begintext" but the displayed
  952. lines are the full "\hsize" wide and the normal "\displayindent"
  953. is ignored.
  954. \endgab
  955. \hangindent 2\parindent \hangafter0
  956. \noindent For example, this is a paragraph which has both its
  957. crown and vest indented twice the normal paragraph indentation.
  958. If, inside this paragraph, we produce a display with
  959. \beginverb
  960. \begintext
  961. Here is the first line of the display
  962. Here is the second.
  963. \endtext
  964. \endverb
  965. then the result appears to have a left margin even with the
  966. indentation of the paragraph, as in:
  967. \begintext
  968. Here is the first line of the display
  969. Here is the second.
  970. \endtext
  971. (Each line of the display is indented "\parindent" from the
  972. margin because each line starts a paragraph.)  But if we specify
  973. the text of the display using the following commands:
  974. \beginverb
  975. \begintextlines
  976. Here is the first line of the display
  977. Here is the second.
  978. \endtextlines
  979. \endverb
  980. then the display ignores the indentation of the paragraph,
  981. producing the following:
  982. \begintextlines
  983. Here is the first line of the display
  984. Here is the second.
  985. \endtextlines
  986. \begingab
  987. \*\+"\begincode"\+ and \+"\begincodelines"\+\\are like
  988. "\begintext" and "\begintextlines" but the material is set in the
  989. typewriter font.
  990. \*\+"\verb"\+\\is used as
  991. \begintext
  992. \noindent"\verb"<char><text><char>
  993. \endtext
  994. and gives you <text> verbatim in the typewriter font.  All \tex\
  995. special characters (such as "\" and "&") are treated as normal
  996. characters.
  997. \*\+"\beginverb"\+ and \+"\beginverblines"\+\\are like
  998. "\begincode" and "\begincodelines" except the intervening text is
  999. taken verbatim.
  1000. \endgab
  1001. \begingroup
  1002. \newverbatim\myverb
  1003.   \begincs \beginmyverb
  1004.   \readcs \readmyv@rb
  1005.   \endcsname endmyverb%
  1006.   \display
  1007.   \setup \hsize=\displaywidth \advance\leftskip\displayindent \tt
  1008.   \begin
  1009.   \end
  1010.   \endnew
  1011. For example
  1012. \beginmyverb
  1013. \beginverb
  1014. \noindent This is some \verbatim \text.
  1015. \centerline {Note that commands are ignored.}
  1016. \endverb
  1017. \endmyverb
  1018. produces
  1019. \beginverb
  1020. \noindent This is some \verbatim \text.
  1021. \centerline {Note that commands are ignored.}
  1022. \endverb
  1023. \endgroup
  1024. \begingab
  1025. \*\+"\beginlisp"\+ and \+"\beginlisplines"\+\\delimit \lisp\
  1026. programs.  Programs are printed in the \="\lispfont"\= (default
  1027. "\regsize\tt") in nofill mode; the \tex\ control characters (such
  1028. as "#") often found in \lisp\ code are turned off; and comments
  1029. are printed in roman.  Programs are boxed to prevent breaks; the
  1030. sequence ";\pbrk"\+ at the start of a line makes that line an
  1031. escape into surrounding vertical mode: you can put in breaks and
  1032. glue.  If you just specify \+"\pbrk"\+ after the semicolon, with
  1033. nothing else on the line, you get a space suitable for insertion
  1034. between function definitions.
  1035. \endgab
  1036. For example, this input
  1037. \beginverb
  1038. \beginlisp
  1039. ;;Good Old Factorial
  1040. (defun fact (n)
  1041.   (cond ((zerop n) 1)                ;base case
  1042.         (t (* n (fact (1- n))))))    ;recursive case
  1043. ;\pbrk
  1044. (defun myfact (n)
  1045.   (cond ((> n 0) (fact n))           ;OK if pos
  1046.         (t (- (fact (- n))))))       ;invert if neg
  1047. ;\pbrk \medskip
  1048. (fact -5)                            ;sample usage
  1049.     -125
  1050. \endlisp
  1051. \endverb
  1052. produces this output
  1053. \beginlisp
  1054. ;;Good Old Factorial
  1055. (defun fact (n)
  1056.   (cond ((zerop n) 1)                ;base case
  1057.         (t (* n (fact (1- n))))))    ;recursive case
  1058. ;\pbrk
  1059. (defun myfact (n)
  1060.   (cond ((> n 0) (fact n))           ;OK if pos
  1061.         (t (- (fact (- n))))))       ;invert if neg
  1062. ;\pbrk \medskip
  1063. (fact -5)                            ;sample usage
  1064.     -125
  1065. \endlisp
  1066. \heading {Two-Column Text}
  1067. The paired delimiter \+"\begintwocolumntext"\+ sets its argument
  1068. material in two columns, with the columns separated by
  1069. \="\columnskip"\=.  Top figures and footnotes in this material
  1070. are still set in a single column extending the full width of the
  1071. page.  Note that you can not use the floating figure style in
  1072. two-column text because there is no way of knowing in advance
  1073. whether figure material set in this style should be one- or
  1074. two-columns wide.  Also, full-page stationary or section figures
  1075. are liable not to work.
  1076. The paired delimiter \+"\begindoublecolumn"\+ sets its argument
  1077. material two columns per page, just as if the "\hsize" had been
  1078. narrowed and the results pasted up.  Thus, every page becomes a
  1079. single column, and commands like "\eject" refer to columns, not
  1080. pages.  The command \+"\pageeject"\+ will force a true page
  1081. break.  {\it Warning}: The "\begindoublecolumn" command will
  1082. throw away everything on the current page, so it is only safe to
  1083. use at the start of a fresh page.
  1084. \heading {Formatting Small Pieces of Text}
  1085. These commands produce little chunks of text in useful shapes, or
  1086. combine small blocks of text in handy ways.
  1087. \begingab
  1088. \*\+"\spread"\+\\takes two or more arguments and spreads them out
  1089. evenly spaced on a line.  For example, the input
  1090. \beginverb
  1091. \spread{Piece1}{Piece2}{}{Piece4 (3 was empty)}
  1092. \endverb
  1093. produces
  1094. \begintextlines
  1095. \spread{Piece1}{Piece2}{}{Piece4 (3 was empty)}
  1096. \endtextlines
  1097. Each piece of text except the leftmost and rightmost are centered
  1098. on their appropriate position.  Notice that the empty argument
  1099. took up a position even though it didn't put anything in that
  1100. place.
  1101. \*\+"\begintleft"\+, \+"\begintcenter"\+, and
  1102. \+"\begintright"\+\\set their arguments as left-flush, centered,
  1103. and right-flush titles in the current font.  Titles are allowed
  1104. to contain more than one paragraph.  Inside of titles, the
  1105. commands \+"\\"\+, \+"\cr"\+, and \+"\crcr"\+ force line breaks.
  1106. \*\+"\sy"\+ and \+"\sybox"\+\\set their arguments in a slightly
  1107. smaller typewriter font.  They differ only in that "\sybox" also
  1108. puts the argument in an hbox so it can't be broken across lines.
  1109. \*\+"\ucsy"\+ and \+"\ucsybox"\+\\are relatives of "\sy" and
  1110. "\sybox" that put their arguments in upper case.
  1111. \*\+"\ignore"\+\\does just that to its single argument.
  1112. \*\+"\filpage"\+\\fills up the rest of the page with white space
  1113. and does a page break.
  1114. \endgab
  1115. \heading {The Date}
  1116. \begingab
  1117. \*\="\hour"\= and \="\minute"\=\\are <number> parameters that
  1118. hold the time \ytex\ started in 24-hour format.  \+"\daytime"\+
  1119. outputs this in the form \sybox{15:35}.
  1120. \*\+"\monthname"\+ and \+"\monthshortname"\+\\output the name of
  1121. the current month; "\monthshortname" is three letters long.
  1122. \*\+"\shortyear"\+\\names the current year without the first two
  1123. digits, as in 86.
  1124. \*\+"\date"\+, \+"\shortdate"\+, and \+"\slashdate"\+\\output the
  1125. current date as in June~9,~1986; 9~Jun~86; and 6/9/86.
  1126. \endgab
  1127. For example, you can get output like
  1128. \begintext
  1129. Today is day 14 of Aug ({\it{}i.e.} August), %
  1130. and the time is 14:34.
  1131. \endtext
  1132. by saying
  1133. \beginverb
  1134. Today is day \number\day\ of \monthshortname
  1135. ({\it i.e.} \monthname), and the time is \daytime.
  1136. \endverb
  1137. \heading {Miscellany}
  1138. \begingab
  1139. \*\+"\ytex"\+, "\yTeX", "\YTEX", "\YTeX", and \+"\oopstex"\+\\all
  1140. give the \ytex\ symbol.
  1141. \*\+"\draft"\+\\adds a line to the bottom of each page that looks
  1142. like this:
  1143. \begintextlines
  1144. \let\message=\ignore%
  1145. \draft\line{\the\bottomgloss}%
  1146. \endtextlines
  1147. This command also sets the "\overfullrule" to "5pt" instead of
  1148. the default "0pt" and prints the message "{Draft}" on your
  1149. terminal screen.
  1150. \endgab
  1151. Here are the default values of a few parameters not yet
  1152. mentioned:
  1153. \beginverb
  1154. \hsize=28pc \vsize=44pc
  1155. \abovedisplayskip=3pt plus1pt minus2pt
  1156. \belowdisplayskip=3pt plus1pt minus2pt
  1157. \abovedisplayshortskip=0pt plus1pt
  1158. \belowdisplayshortskip=2pt plus1pt minus1pt
  1159. \parindent=2em
  1160. \parskip=0pt plus1pt
  1161. \normallineskip=2pt
  1162. \normallineskiplimit=0pt
  1163. \clubpenalty=900
  1164. \widowpenalty=900
  1165. \endverb
  1166. The default "\typesize" is ten point.  Keep in mind that, if you
  1167. make the "\typesize" "11pt" or "12pt", the "\hsize" and "\vsize"
  1168. will be magnified by $1.1$ or $1.2$, so you probably won't need
  1169. to change them.  If you have a definite measurement you want used
  1170. for the margins independent of what magnification gets used,
  1171. specify it in ``true'' units (as in "\hsize=6 true in").  The
  1172. output routine will always try to center your output on the
  1173. output page; you can use "\hoffset" and "\voffset" to shift it
  1174. off center any desired amount.
  1175. \section {For Wizards Only}
  1176. Here are some features that inexperienced \tex nicians should
  1177. probably avoid.  Once again they are grouped by topic: some of
  1178. the topics also appeared above.
  1179. \heading {Page Glosses}
  1180. Pages can have {\it glosses} which are special lines that appear
  1181. above the header and below the footer.  The <toks> parameters
  1182. \="\topgloss"\= and \="\bottomgloss"\= contain the contents of
  1183. the glosses.  You turn glosses off and on just like runners, but
  1184. both glosses default off.  The top gloss defaultly contains a
  1185. copyright message like the following:
  1186. \begintextlines
  1187. \copyrightholder={by the author}%
  1188. \line{\the\topgloss}%
  1189. \endtextlines
  1190. while the bottom gloss is defaultly empty.  The words ``by the
  1191. author'' are the value of the <toks> parameter
  1192. \="\copyrightholder"\=.
  1193. \begingab
  1194. \*\:"\showcopyrighttrue"\: and "\showcopyrightfalse"\\allow and
  1195. disallow the showing of the top gloss.  To actually get the top
  1196. gloss to show on a particular page, you also have to say
  1197. \+"\copyrightpage"\+ somewhere on that page.
  1198. \endgab
  1199. The "\draft" macro described above uses the bottom gloss.
  1200. \heading {Size Changing}
  1201. There are also explicit size-selection commands such as
  1202. "\twelevepoint", but these pay no attention to the "\typesize",
  1203. so their use is not advised.
  1204. The baseline spacing is set whenever a size change command is
  1205. given by saying
  1206. \beginverb
  1207. \normalbaselineskip=\the\baselinefactor em%
  1208. \baselineskip\normalbaselineskip
  1209. \endverb
  1210. Thus, the value of the <toks> parameter \="\baselinefactor"\=
  1211. (default "{1.3}") can be used to vary the baseline spacing.  Note
  1212. that changes in "\baselinefactor" will not take effect until you
  1213. give a size-changing command or say \+"\setnormalbaselines"\+.
  1214. For example, these are the default definitions for "\singlespace"
  1215. and "\doublespace":
  1216. \beginverb
  1217. \def\singlespace{\baselinefactor={1.3}\setnormalbaselines}
  1218. \def\doublespace{\baselinefactor={2.6}\setnormalbaselines}
  1219. \endverb
  1220. \heading {Setup Hooks}
  1221. A variety of the default user-level macros---such as figures,
  1222. captions, footnotes, etc.---provide for user-defined set-up
  1223. hooks.  For example, every figure macro calls the macro
  1224. "\setupfigure", which in turn calls a macro "\setupfigurehook"
  1225. which the user is free to define.  Check the source code for
  1226. details as to which of these hooks exist.
  1227. \heading {More About Tables}
  1228. There is an escape mechanism whereby arbitrary alignment
  1229. specifications can be put into the preamble of a table.  A column
  1230. is normally specified by a letter, but arbitrary material
  1231. enclosed within balanced braces may be used to specify a column
  1232. instead.  For example, the preamble specification
  1233. \beginverb
  1234. [l{\hfil $\displaystyle #$}c]
  1235. \endverb
  1236. produces the following preamble
  1237. \beginverb
  1238. \tabskip\intabskip
  1239. #\hfil & \hfil $\displaystyle #$& \hfil #\hfil
  1240. \tabskip\posttabskip\cr
  1241. \endverb
  1242. The material within matching braces can only specify one column
  1243. in the preamble: you must use more than one set of braces to
  1244. specify more than one column.  There is no limit on the number of
  1245. columns that can be specified in this way.  When a column is
  1246. specified in this way, the entry produced for that column by
  1247. "\padline" will contain an "\omit" so as to produce white space.
  1248. Thus, if the specified material contains a "\vrule"
  1249. specification, that rule will not extend through padding.
  1250. If the material in braces starts with a "\tabskip" specification,
  1251. \ytex\ assumes that it contains only that specification, and it
  1252. merely embeds the specification in the preamble instead of making
  1253. it a column specification.  For example, the specification
  1254. \beginverb
  1255. [l{\tabskip=2em }lr]
  1256. \endverb
  1257. produces the preamble
  1258. \beginverb
  1259. \tabskip\intabskip
  1260. #\hfil & \tabskip=2em #\hfil& \hfil #%
  1261. \tabskip\posttabskip\cr
  1262. \endverb
  1263. This mechanism can be used to vary the between-column skip within
  1264. a line.  Keep in mind, however, that the "\posttabskip" will
  1265. override such specifications after the last column.
  1266. The interline glue is normally turned off in tables, and struts
  1267. are used to keep the line spacing correct.  If all of the
  1268. preamble specifications in a table are given with the "{}" escape
  1269. mechanism instead of \ytex's abbreviations, you should put struts
  1270. in at least one of the columns to force correct line spacing.
  1271. If you specify \hbox{"height" <dimen>} as the contents of a "|"
  1272. or \" column, that will override the natural height of the
  1273. "\vrule".  This is the mechanism used by "\padline".
  1274. \section {A List of Many \ytex\ Commands}
  1275. Here is a list of all the commands, parameters, and switches
  1276. described hereto.  It is not a complete list of all the \ytex\
  1277. commands, but it gets most of the useful ones.
  1278. \heading {The Commands}
  1279. The {\bf type} given in this table is one of {\bf SD} for
  1280. standard delimiter, {\bf PD} for paired delimiter, {\bf Par} for
  1281. paragraph delimiter, and {\bf A} for abbreviation.  If a paired
  1282. delimiter has a standard form, it appears in this table in that
  1283. form.  Paired delimiters which do not have standard forms ({\it
  1284. i.e.}, those which delimit nofill text) appear in their "begin"
  1285. form alphabetized under "begin".
  1286. \medskip
  1287. \begingroup
  1288.   \def\crs{\cr\noalign{\vskip 0pt plus.2pt}}
  1289.   \intabskip=.5em
  1290.   \beginopentable [lcl]%
  1291.     \bf Command&    \bf Type& \bf Summary\cr
  1292.     \midline
  1293.     "\\"&                 A&  breaks lines in titles, ends rows in tables\crs
  1294.     "\abstract"&         PD&  abstract text\crs
  1295.     "\atpar"&           Par&  adjoint-tagged paragraph\crs
  1296.     "\author"&           PD&  author's name(s)\crs
  1297.     "\begincode"&        PD&  typewriter font textual display\crs
  1298.     "\begincodelines"&   PD&  unindented typewriter font textual display\crs
  1299.     "\beginlisp"&        PD&  \lisp\ program display\crs
  1300.     "\beginlisplines"&   PD&  unindented \lisp\ program display\crs
  1301.     "\beginnofill"&      PD&  unboxed unfilled text\crs
  1302.     "\begintext"&        PD&  unfilled textual display\crs
  1303.     "\begintextlines"&   PD&  unindented unfilled textual display\crs
  1304.     "\beginverb"&        PD&  typewriter font verbatim display\crs
  1305.     "\beginverblines"&   PD&  unindented typewriter font verbatim display\crs
  1306.     "\bigsize"&           A&  switch to a larger size of type\crs
  1307.     "\biggsize"&          A&  switch to an even larger size\crs
  1308.     "\bigggsize"&         A&  switch to an even larger size still\crs
  1309.     "\botline"&           A&  horizontal line for bottom of tables\crs
  1310.     "\bottomtext"&       PD&  text for bottom of title page\crs
  1311.     "\bpar"&            Par&  bullet paragraph\crs
  1312.     "\bullets"&          PD&  group of bullet paragraphs\crs
  1313.     "\caption"&          PD&  caption (figures only)\crs
  1314.     "\cauthor"&          PD&  centered author's name\crs
  1315.     "\chapter"&          PD&  chapter title\crs
  1316.     "\copyrightpage"&     A&  allow copyright message\crs
  1317.     "\cr"&                A&  breaks lines in titles, ends rows in tables\crs
  1318.     "\crcr"&              A&  breaks lines in titles, ends rows in tables\crs
  1319.     "\ctitle"&           PD&  centered title\crs
  1320.     "\date"&              A&  date as June 9, 1986\crs
  1321.     "\daytime"&           A&  time of day in 24 hour format\crs
  1322.     "\dbotline"&          A&  double width line for bottom of table\crs
  1323.     "\dinline"&           A&  double width unpadded table line\crs
  1324.     "\displaytable"&     PD&  table display\crs
  1325.     "\dmidline"&          A&  double width line for middle of table\crs
  1326.     "\doublecolumn"&     PD&  double-column mode\crs
  1327.     "\doublespace"&       A&  double space text\crs
  1328.     "\draft"&             A&  put draft mark on all pages\crs
  1329.     "\dtopline"&          A&  double width line for top of table\crs
  1330.     "\figdef"&            A&  no-op for managing figure numbers\crs
  1331.     "\figref"&            A&  no-op for managing figure numbers\crs
  1332.     "\figure"&           PD&  figure in current style\crs
  1333.     "\figurebox"&        PD&  stationary boxed figure\crs
  1334.     "\filpage"&           A&  end current page with white space\crs
  1335.     "\floatingfigures"&   A&  figure style is {\it floating}\crs
  1336.     "\floatingfigure"&   PD&  define floating figure\crs
  1337.     "\floatingpagefigure"&PD&  define floating full-page figure\crs
  1338.     "\footdef"&           A&  no-op for managing footnote numbers\crs
  1339.     "\footref"&           A&  no-op for managing footnote numbers\crs
  1340.     "\footnote"&         SD&  specify footnote while in paragraph\crs
  1341.     "\footmatter"&       PD&  specify footnote text with no marker\crs
  1342.     "\ftpar"&           Par&  flush-tagged paragraph\crs
  1343.     "\heading"&          PD&  left-flush heading\crs
  1344.     "\ignore"&            A&  ignore argument\crs
  1345.     "\inline"&            A&  unpadded horizontal line in table\crs
  1346.     "\ipar"&            Par&  indented paragraph\crs
  1347.     "\ivpar"&           Par&  inverted paragraph\crs
  1348.     "\linebreak"&         A&  force line break in paragraph\crs
  1349.     "\midline"&           A&  horizontal line for middle of table\crs
  1350.     "\monthname"&         A&  full name of current month\crs
  1351.     "\monthshortname"&    A&  first three letters of current month\crs
  1352.     "\nfootnote"&        SD&  specify numbered footnote in paragraph\crs
  1353.     "\oopstex"&           A&  the \ytex\ symbol\crs
  1354.     "\opentable"&        PD&  unboxed table\crs
  1355.     "\padline"&           A&  put padding in table\crs
  1356.     "\pageeject"&         A&  force a page break in double-column mode\crs
  1357.     "\pagefigure"&       PD&  full page figure in desired style\crs
  1358.     "\partpage"&         PD&  titling page with usual page number\crs
  1359.     "\pbrk"&              A&  escape to vertical mode in \lisp\ programs\crs
  1360.     "\pchapter"&         PD&  chapter title on new page\crs
  1361.     "\quote"&            PD&  quotation text\crs
  1362.     "\regsize"&           A&  switch to the regular size of type\crs
  1363.     "\secdef"&            A&  no-op for managing section numbers\crs
  1364.     "\secref"&            A&  no-op for managing section numbers\crs
  1365.     "\section"&          PD&  section title\crs
  1366.     "\sectionfigures"&    A&  figure style is {\it section}\crs
  1367.     "\sectionfigure"&    PD&  define section figure\crs
  1368.     "\sectionpagefigure"&PD&  define section full-page figure\crs
  1369.     "\setnormalbaselines"&A&  use "\baselinefactor" to set baselines\crs
  1370.     "\shortdate"&         A&  date as in 9 Jun 86\crs
  1371.     "\shortyear"&         A&  last two digits of current year\crs
  1372.     "\singlespace"&       A&  single space text\crs
  1373.     "\slashdate"&         A&  date as in 6/9/86\crs
  1374.     "\smlsize"&           A&  switch to a smaller size of type\crs
  1375.     "\smllsize"&          A&  switch to an even smaller size\crs
  1376.     "\smlllsize"&         A&  switch to an even smaller size still\crs
  1377.     "\spread"&           SD&  spread args evenly on line\crs
  1378.     "\stationaryfigures"& A&  figure style is {\it stationary}\crs
  1379.     "\stationaryfigure"& PD&  define stationary figure\crs
  1380.     "\stationarypagefigure"&PD&  define stationary full-page figure\crs
  1381.     "\subsection"&       PD&  synonym for "\section"\crs
  1382.     "\subsubsection"&    PD&  synonym for "\section"\crs
  1383.     "\sy"&               SD&  set arg in smaller typewriter font\crs
  1384.     "\sybox"&            SD&  hboxed "\sy"\crs
  1385.     "\tabdef"&            A&  no-op for managing table numbers\crs
  1386.     "\table"&            PD&  vboxed table\crs
  1387.     "\tabref"&            A&  no-op for managing table numbers\crs
  1388.     "\tcenter"&          PD&  centered title\crs
  1389.     "\title"&            PD&  title\crs
  1390.     "\titlepage"&        PD&  titling page with page number 0\crs
  1391.     "\tleft"&            PD&  left-flush title\crs
  1392.     "\topfigures"&        A&  figure style is {\it top}\crs
  1393.     "\topfigure"&        PD&  define top figure\crs
  1394.     "\toppagefigure"&    PD&  define top full-page figure\crs
  1395.     "\topline"&           A&  horizontal line for top of table\crs
  1396.     "\tright"&           PD&  right-flush title\crs
  1397.     "\twocolumntext"&    PD&  two-column text\crs
  1398.     "\ucsy"&             SD&  uppercase "\sy"\crs
  1399.     "\ucsybox"&          SD&  uppercase "\sybox"\crs
  1400.     "\unvpar"&            A&  allow indentation on next paragraph\crs
  1401.     "\verb"&              A&  verbatim text\crs
  1402.     "\vfootnote"&        PD&  specify footnote text in vertical mode\crs
  1403.     "\vpar"&              A&  disallow indentation on next paragraph\crs
  1404.     "\vtpar"&           Par&  variably-tagged paragraph\crs
  1405.     "\ytex"&              A&  the \ytex\ symbol\cr
  1406.   \endopentable
  1407. \endgroup
  1408. \heading {Parameters}
  1409. The {\bf type} given in this table is one of {\bf I} for
  1410. <integer>, {\bf D} for <dimen>, {\bf G} for <glue>, and {\bf
  1411. T} for <toks>.
  1412. \medskip
  1413. \begingroup
  1414.   \def\crs{\cr\noalign{\vskip 0pt plus.2pt}}
  1415.   \intabskip=.5em
  1416.   \beginopentable [lcl]%
  1417.     \bf Parameter&  \bf Type& \bf Default\cr
  1418.     \midline
  1419.     "\abovecaptionskip"&   G&  "\medskipamount"\crs
  1420.     "\abovechapterskip"&   G&  "18pt", stretch is 3 times the "\parskip"'s\crs
  1421.     "\abstractfont"&       T&  "{\smlsize\rm}"\crs
  1422.     "\abstractindent"&     D&  "0pt"\crs
  1423.     "\authorfont"&         T&  "{\regsize\rm}"\crs
  1424.     "\baselinefactor"&     T&  "{1.3}"\crs
  1425.     "\belowchapterskip"&   G&  "9pt", stretch is 3 times the "\parskip"'s\crs
  1426.     "\bottomgloss"&        T&  <empty>\crs
  1427.     "\bottomtextfont"&     T&  "{\smllsize\rm}"\crs
  1428.     "\botsep"&             T&  "{\vskip\bigskipamount \footnoterule}"\crs
  1429.     "\captionindent"&      D&  "\parindent"\crs
  1430.     "\captionfont"&        T&  "{\smlsize\rm}"\crs
  1431.     "\chapterfont"&        T&  "{\bigsize\bf}"\crs
  1432.     "\columnskip"&         D&  "2pc"\crs
  1433.     "\copyrightholder"&    T&  "{by the author}"\crs
  1434.     "\dhbarheight"&        D&  "1pt"\crs
  1435.     "\dvbarwidth"&         D&  "1pt"\crs
  1436.     "\figurelinedrop"&     D&  "4pt"\crs
  1437.     "\footerdrop"&         D&  "1.25pc"\crs
  1438.     "\footnotefont"&       T&  "{\smlsize\rm}"\crs
  1439.     "\footnotemarkerwidth"&D&  "10pt"\crs
  1440.     "\hbarheight"&         D&  "0.4pt"\crs
  1441.     "\headerdrop"&         D&  "1.25pc"\crs
  1442.     "\hour"&               I&  starting hour of job\crs
  1443.     "\intabskip"&          G&  "1em"\crs
  1444.     "\lispfont"&           T&  "{\smlsize\tt}"\crs
  1445.     "\minute"&             I&  starting minute of job\crs
  1446.     "\pageno"&             I&  current page number\crs
  1447.     "\partagsep"&          D&  separation between tag and crown line\crs
  1448.     "\postchapterpenalty"& I&  "10000"\crs
  1449.     "\posttabskip"&        G&  "0pt plus 1fil"\crs
  1450.     "\prechapterpenalty"&  I&  "-500"\crs
  1451.     "\pretabskip"&         G&  "0pt plus 1fil"\crs
  1452.     "\quotefont"&          T&  "{\smlsize\rm}"\crs
  1453.     "\rectoleftheader"&    T&  "{\firstmark}"\crs
  1454.     "\rectocenterheader"&  T&  <empty>\crs
  1455.     "\rectorightheader"&   T&  "{\bf folio}"\crs
  1456.     "\rectoleftfooter"&    T&  <empty>\crs
  1457.     "\rectocenterfooter"&  T&  "{\bf folio}"\crs
  1458.     "\rectorightfooter"&   T&  <empty>\crs
  1459.     "\runnerfont"&         T&  "{\smlsize\rm}"\crs
  1460.     "\runninghead"&        T&  <synonym for "\rectoleftheader">\crs
  1461.     "\tablewidth"&         D&  "0pt" (settable only)\crs
  1462.     "\tablestyle"&         T&  {"\displaystyle"}\crs
  1463.     "\titlefont"&          T&  "{\bigsize\bf}"\crs
  1464.     "\topgloss"&           T&  <empty>\crs
  1465.     "\topsep"&             T&  <empty>\crs
  1466.     "\typesize"&           D&  10pt (settable only)\crs
  1467.     "\vbarwidth"&          D&  "0.4pt"\crs
  1468.     "\versoleftheader"&    T&  "{\bf folio}"\crs
  1469.     "\versocenterheader"&  T&  <empty>\crs
  1470.     "\versorightheader"&   T&  <empty>\crs
  1471.     "\versoleftfooter"&    T&  <empty>\crs
  1472.     "\versocenterfooter"&  T&  "{\bf folio}"\crs
  1473.     "\versorightfooter"&   T&  <empty>\cr
  1474.   \endopentable
  1475. \endgroup
  1476. \heading {Switches}
  1477. The {\bf type} given in this table is one of {\bf O} for on/off
  1478. and {\bf T} for true/false.
  1479. \medskip
  1480. \begingroup
  1481.   \def\crs{\cr\noalign{\vskip 0pt plus.2pt}}
  1482.   \intabskip=.5em
  1483.   \beginopentable [lcl]%
  1484.     \bf Switch&     \bf Type& \bf Default\cr
  1485.     \midline
  1486.     "\centerheadings"&     T&  false\crs
  1487.     "\figureline"&         T&  false\crs
  1488.     "\footers"&            O&  off\crs
  1489.     "\headers"&            O&  on\crs
  1490.     "\indent"&             O&  on\crs
  1491.     "\runners"&            O&  on\crs
  1492.     "\showcopyright"&      T&  false\crs
  1493.     "\twosided"&           T&  false\crs
  1494.     "\vpar"&               T&  true\cr
  1495.   \endopentable
  1496. \endgroup
  1497.